//
//  MoneyState.h
//  iMoney
//
//  Created by VertigoSol on 9/12/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Account.h"
#import"Expense.h"


@interface MoneyState : NSObject {
	
@private
	Account* tempAccount;
	NSMutableString* tempData;
	NSString* attrib;
	Expense* tempExpense;

	NSMutableArray* accounts;
	
	NSArray* expenseTypeList;
}


-(void) clearAllAccounts;
-(Account*) getAccount:(NSUInteger) num;
-(void) addAccount:(Account*) account;
-(void) removeAccountIndex: (NSInteger) index;
-(void) removeAccount: (Account*) acc;
-(BOOL) containsAccount: (NSString*) name;
-(int) numAccounts;
-(double) getTotalAccountsAmount;
-(NSMutableString*) getDataXML: (BOOL) millisecTime;
-(NSMutableDictionary*) getExpenseList;
-(NSArray*) getTypeList;
-(BOOL) parseXmlFromFile:(NSString*)filePath;
-(BOOL) parseXmlFromData:(NSData*)xmlData;

-(BOOL) saveDataFile:(NSString*) filePath;
-(NSString*) removeNewline:(NSString*) string;

@end
